package com.bawei.module_launcher.user.model

import com.bawei.library_net.RetrofitManager
import com.bawei.library_net.entity.BaseEntity
import com.bawei.module_launcher.splash.model.SplashApi
import com.bawei.module_launcher.user.entity.RequestEntity
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * @Author : 
 * @Time : On 2023/7/31 10:11
 * @Description : PhoneService
 */
class PhoneService {
    private val api: PhoneApi
    init {
        api = RetrofitManager.instance.create(PhoneApi::class.java)
    }
    suspend fun sendCode( requestEntity: RequestEntity): BaseEntity{
        return api.sendCode(requestEntity)
    }
    suspend fun verfiryCode( requestEntity: RequestEntity): BaseEntity{
        return api.verfiryCode(requestEntity)
    }
}